package com.lhy.noed;

import java.util.Objects;

/**
 * @description:
 * @author: 李汇远
 */
public class GzDaoFactory {

    private static GzExecute gzExecute = null;

    public static void setGzExecute(GzExecute execute) {
        gzExecute = execute;
    }

    public static GzDao build(String tableName) {
        Objects.requireNonNull(gzExecute, "GzExecute类未设置");
        Objects.requireNonNull(tableName, "[GzDao]build 数据库表名不能为空");
        return new GzDao(tableName, gzExecute);
    }

}
